package edu.ynu.se.xiecheng.achitectureclass.project.dao;

import edu.ynu.se.xiecheng.achitectureclass.project.po.entity.Data;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DataDAO extends JpaRepository<Data, Long> {

    List<Data> findByIsDeletedFalse();

    Data findBySerialIdAndIsDeletedFalse(String serialId);

    List<Data> findByNameAndIsDeletedFalse(String name);
}